-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix incomplete_fov_check
to not require a channel named Au
#474
base: main
Are you sure you want to change the base?
Conversation
…of if Au was found
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
…y imaged, and last test for only one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just have one note that we shouldn't completely remove the Au channel check when looking for incomplete images.
channels = io_utils.list_files(os.path.join(extraction_dir, fovs[0]), ".tiff") | ||
channels_subset = channels[:num_channels] | ||
if "Au.tiff" not in channels_subset: | ||
channels_subset = channels_subset[:-1] + ["Au.tiff"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noah specifically noted here that Au should always be a default channel when checking for incomplete fovs. So if some panels don't have gold, then we need this if statement to change instead of removing it completely.
if "Au.tiff" in channels and not in channels_subset:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@camisowers in line with adding an explicit argument to set intensity_channels
to the callback creation function, what about adding another explicit argument defining a custom name for the gold channel? By default, it will be set to "Au"
, and even if the user leaves it as None
, it'll still assume an "Au.tiff"
is found.
In cases where some channels fail to load, instead of erroring out completely, check if the error is specifically caused by a failure to load in gold, and if so, throw a warning that the specific gold channel could not be located and to ask the user to double-check that this is indeed correct.
What is the purpose of this PR?
Closes #473.
How did you implement your changes
Remove the addition of the
"Au"
channel inincomplete_fov_check
.Add specific lists in the
3a
and3b
notebooks to allow the user to change their intensity channels they wish to extract (or leave as blank of none specified).